<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDataMember/QxDataMemberX.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_data_member_x_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxDataMemberX.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_data_member_x_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_DATA_MEMBER_X_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_DATA_MEMBER_X_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/type_traits/is_integral.hpp&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;boost/type_traits/is_base_of.hpp&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;<a class="code" href="_ix_data_member_x_8h.html" title="Common interface for a list of IxDataMember class properties registered into QxOrm context (for examp...">QxDataMember/IxDataMemberX.h</a>&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;<a class="code" href="_qx_data_member_8h.html" title="Concrete class property registered into QxOrm context.">QxDataMember/QxDataMember.h</a>&gt;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="_qx_data_member___q_object_8h.html" title="Connect Qt introspection engine (based on QObject class, with QMetaObject type) to QxOrm library intr...">QxDataMember/QxDataMember_QObject.h</a>&gt;</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation_8h.html" title="Base class for all relationships defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation.h</a>&gt;</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="preprocessor">#include &lt;<a class="code" href="_qx_singleton_8h.html" title="Concrete class to define a thread-safe singleton of QxOrm library.">QxSingleton/QxSingleton.h</a>&gt;</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#include &lt;<a class="code" href="_qx_factory_8h.html" title="Concrete factory class to create object dynamically using the class name.">QxFactory/QxFactory.h</a>&gt;</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#include &lt;<a class="code" href="get__base__class_8h.html" title="qx::trait::get_base_class&lt;T&gt;::type : retrieve base class of type T registered into QxOrm context and ...">QxTraits/get_base_class.h</a>&gt;</span>
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="get__primary__key_8h.html" title="qx::trait::get_primary_key&lt;T&gt;::type : return primary key type of T, by default primary key is long ty...">QxTraits/get_primary_key.h</a>&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#include &lt;<a class="code" href="get__sql__type_8h.html" title="qx::trait::get_sql_type&lt;T&gt;::get() : return type name under const char * format used by database engin...">QxTraits/get_sql_type.h</a>&gt;</span>
<a name="l00062"></a>00062 <span class="preprocessor">#include &lt;<a class="code" href="qt__meta__object_8h.html" title="qx::trait::qt_meta_object&lt;T&gt;::get() : if T is based on QObject class, then return QMetaObject instanc...">QxTraits/qt_meta_object.h</a>&gt;</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">namespace </span>qx {
<a name="l00065"></a>00065 
<a name="l00070"></a>00070 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00071"></a><a class="code" href="classqx_1_1_qx_data_member_x.html">00071</a> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_data_member_x.html" title="qx::QxDataMemberX&lt;T&gt; : concrete list of properties registered into QxOrm context for the class T...">QxDataMemberX</a> : <span class="keyword">public</span> <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a>, <span class="keyword">public</span> <a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt; QxDataMemberX&lt;T&gt; &gt;
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a347fc264d5e1490c5993a84eeaba7c40">00074</a>    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt; <a class="code" href="classqx_1_1_qx_data_member_x.html" title="qx::QxDataMemberX&lt;T&gt; : concrete list of properties registered into QxOrm context for the class T...">QxDataMemberX</a>&lt;T&gt; &gt;;
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="keyword">public</span>:
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#acea5f785dda726fac7cfac77edd50013">00078</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1trait_1_1get__primary__key.html#a11ae75af18e7cc688dd45e73c037dc39">qx::trait::get_primary_key&lt;T&gt;::type</a> <a class="code" href="classqx_1_1_qx_data_member_x.html#acea5f785dda726fac7cfac77edd50013">type_primary_key</a>;
<a name="l00079"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a8119be8b77e925910053f10c18397985">00079</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1trait_1_1no__base__class__defined.html">qx::trait::get_base_class&lt;T&gt;::type</a> <a class="code" href="classqx_1_1_qx_data_member_x.html#a8119be8b77e925910053f10c18397985">type_base_class</a>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keyword">protected</span>:
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7">00083</a>    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a>;  
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">protected</span>:
<a name="l00086"></a>00086 
<a name="l00087"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#ab6876360d27307cc59a965adda76af2b">00087</a>    <a class="code" href="classqx_1_1_qx_data_member_x.html#ab6876360d27307cc59a965adda76af2b">QxDataMemberX</a>() : <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a>(), <a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt; <a class="code" href="classqx_1_1_qx_data_member_x.html" title="qx::QxDataMemberX&lt;T&gt; : concrete list of properties registered into QxOrm context for the class T...">QxDataMemberX</a>&lt;T&gt; &gt;(QString(<span class="stringliteral">&quot;qx::QxDataMemberX_&quot;</span>) + qx::trait::get_class_name&lt;T&gt;::get_xml_tag()), <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a>(NULL) { ; }
<a name="l00088"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a3d11e29ec50986fe1d9870bdfc97e10a">00088</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a3d11e29ec50986fe1d9870bdfc97e10a">~QxDataMemberX</a>() { ; }
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="keyword">public</span>:
<a name="l00091"></a>00091 
<a name="l00092"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a99718a6e2d3f8bdd272cf7f75befe95b">00092</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a99718a6e2d3f8bdd272cf7f75befe95b">getId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a>; }
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#ab7cb961cabc6dce966ae6bdb95863fc8">00094</a>    <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#ab7cb961cabc6dce966ae6bdb95863fc8">count_WithDaoStrategy</a>()<span class="keyword"> const                              </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a9405338a4bbd4e7b84125667f395de5d">count_WithDaoStrategy_Helper</a>(); }
<a name="l00095"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#aa2534bf4fc6098361e1f117e761f2d24">00095</a>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#aa2534bf4fc6098361e1f117e761f2d24">exist_WithDaoStrategy</a>(<span class="keyword">const</span> QString &amp; sKey)<span class="keyword"> const          </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a842e8efedf54aed6141fc5d79b13d5f4">exist_WithDaoStrategy_Helper</a>(sKey); }
<a name="l00096"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">00096</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">get_WithDaoStrategy</a>(<span class="keywordtype">long</span> lIndex)<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d76e83f04a5c4d1a9aeca31c36e3b2e">get_WithDaoStrategy_Helper</a>(lIndex); }
<a name="l00097"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#ae022646d586e37f7af3dbadf9b64732f">00097</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#ae022646d586e37f7af3dbadf9b64732f">get_WithDaoStrategy</a>(<span class="keyword">const</span> QString &amp; sKey)<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d76e83f04a5c4d1a9aeca31c36e3b2e">get_WithDaoStrategy_Helper</a>(sKey); }
<a name="l00098"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">00098</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()<span class="keyword"> const                    </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a696df68ce12ea44f50d4c7d512cedc16">getId_WithDaoStrategy_Helper</a>(); }
<a name="l00099"></a>00099 
<a name="l00100"></a>00100    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a50a43f2f67a0c3263b36c33d820b71f2">id</a>(<a class="code" href="classqx_1_1_qx_data_member_x.html#acea5f785dda726fac7cfac77edd50013">type_primary_key</a> T::* pDataMemberId, <span class="keyword">const</span> QString &amp; sKey);
<a name="l00101"></a>00101    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a50a43f2f67a0c3263b36c33d820b71f2">id</a>(<a class="code" href="classqx_1_1_qx_data_member_x.html#acea5f785dda726fac7cfac77edd50013">type_primary_key</a> T::* pDataMemberId, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00102"></a>00102    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a50a43f2f67a0c3263b36c33d820b71f2">id</a>(<span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00103"></a>00103    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d5f8c831d92ea492dd2037d4d4b062d">add</a>(<span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d5f8c831d92ea492dd2037d4d4b062d">add</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey);
<a name="l00106"></a>00106    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d5f8c831d92ea492dd2037d4d4b062d">add</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00107"></a>00107    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d5f8c831d92ea492dd2037d4d4b062d">add</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion, <span class="keywordtype">bool</span> bSerialize);
<a name="l00108"></a>00108    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d5f8c831d92ea492dd2037d4d4b062d">add</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion, <span class="keywordtype">bool</span> bSerialize, <span class="keywordtype">bool</span> bDao);
<a name="l00109"></a>00109 
<a name="l00110"></a>00110    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a46c6cd255cd507f5f9b08c0f0b2b0be8">relationOneToOne</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey);
<a name="l00111"></a>00111    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a46c6cd255cd507f5f9b08c0f0b2b0be8">relationOneToOne</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00112"></a>00112    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a17855d238ac107c838a05390f2ceee6d">relationManyToOne</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey);
<a name="l00113"></a>00113    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a17855d238ac107c838a05390f2ceee6d">relationManyToOne</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion);
<a name="l00114"></a>00114    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a83b2ac32eae7d0f3781a114e5c46d529">relationOneToMany</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keyword">const</span> QString &amp; sForeignKey);
<a name="l00115"></a>00115    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a83b2ac32eae7d0f3781a114e5c46d529">relationOneToMany</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keyword">const</span> QString &amp; sForeignKey, <span class="keywordtype">long</span> lVersion);
<a name="l00116"></a>00116    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#ab8fd6830f6f7864ae61e626a8dda760f">relationManyToMany</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keyword">const</span> QString &amp; sExtraTable, <span class="keyword">const</span> QString &amp; sForeignKeyOwner, <span class="keyword">const</span> QString &amp; sForeignKeyDataType);
<a name="l00117"></a>00117    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V, <span class="keyword">typename</span> U&gt; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#ab8fd6830f6f7864ae61e626a8dda760f">relationManyToMany</a>(V U::* pData, <span class="keyword">const</span> QString &amp; sKey, <span class="keyword">const</span> QString &amp; sExtraTable, <span class="keyword">const</span> QString &amp; sForeignKeyOwner, <span class="keyword">const</span> QString &amp; sForeignKeyDataType, <span class="keywordtype">long</span> lVersion);
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 <span class="preprocessor">#ifdef _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>   <span class="keyword">template</span> &lt;<span class="keyword">class</span> Archive&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a01bc5e37f6739ef860d3c210690701c4">toArchive</a>(<span class="keyword">const</span> T * pOwner, Archive &amp; ar, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> file_version) <span class="keyword">const</span>;
<a name="l00121"></a>00121    <span class="keyword">template</span> &lt;<span class="keyword">class</span> Archive&gt; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a5c3ef481f9fa2268e027d17d3d030ad4">fromArchive</a>(T * pOwner, Archive &amp; ar, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> file_version);
<a name="l00122"></a>00122 <span class="preprocessor">#endif // _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00124"></a>00124 <span class="keyword">private</span>:
<a name="l00125"></a>00125 
<a name="l00126"></a>00126    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#addef3908d8a88e77dcbb67eed5275ca7">initId</a>(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pId, <span class="keywordtype">long</span> lVersion);
<a name="l00127"></a>00127    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#af3b3e97e2a436b078899a7057591a1f2">initData</a>(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">long</span> lVersion);
<a name="l00128"></a>00128 
<a name="l00129"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">00129</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxDataMemberX&lt;type_base_class&gt;::getSingleton</a>(); }
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a9405338a4bbd4e7b84125667f395de5d">00131</a>    <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a9405338a4bbd4e7b84125667f395de5d">count_WithDaoStrategy_Helper</a>()<span class="keyword"> const</span>
<a name="l00132"></a>00132 <span class="keyword">   </span>{
<a name="l00133"></a>00133       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcaf08e38a3769dbac50d011e9cef7944cd">qx::dao::strategy::single_table_inheritance</a>)
<a name="l00134"></a>00134       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() != <a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>()) ? <a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>() : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#ab7cb961cabc6dce966ae6bdb95863fc8">count_WithDaoStrategy</a>()); }
<a name="l00135"></a>00135       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcad3582006a4f6e92c867911bbc38c7d74">qx::dao::strategy::class_table_inheritance</a>)
<a name="l00136"></a>00136       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>() + ((! <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> &amp;&amp; <a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()) ? 1 : 0)); }
<a name="l00137"></a>00137       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fca6c908bb49b4e8da20958e4f6c729aa33">qx::dao::strategy::concrete_table_inheritance</a>)
<a name="l00138"></a>00138       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>() + <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#ab7cb961cabc6dce966ae6bdb95863fc8">count_WithDaoStrategy</a>()); }
<a name="l00139"></a>00139       <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> 0;
<a name="l00140"></a>00140    }
<a name="l00141"></a>00141 
<a name="l00142"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a842e8efedf54aed6141fc5d79b13d5f4">00142</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_data_member_x.html#a842e8efedf54aed6141fc5d79b13d5f4">exist_WithDaoStrategy_Helper</a>(<span class="keyword">const</span> QString &amp; sKey)<span class="keyword"> const</span>
<a name="l00143"></a>00143 <span class="keyword">   </span>{
<a name="l00144"></a>00144       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcaf08e38a3769dbac50d011e9cef7944cd">qx::dao::strategy::single_table_inheritance</a>)
<a name="l00145"></a>00145       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() != <a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>()) ? <a class="code" href="classqx_1_1_ix_data_member_x.html#a8b897ee35ed11dc58762e36b2fcbaf7c">exist</a>(sKey) : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#aa2534bf4fc6098361e1f117e761f2d24">exist_WithDaoStrategy</a>(sKey)); }
<a name="l00146"></a>00146       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcad3582006a4f6e92c867911bbc38c7d74">qx::dao::strategy::class_table_inheritance</a>)
<a name="l00147"></a>00147       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#a8b897ee35ed11dc58762e36b2fcbaf7c">exist</a>(sKey) || (<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>() ? (<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()-&gt;getKey() == sKey) : <span class="keyword">false</span>)); }
<a name="l00148"></a>00148       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fca6c908bb49b4e8da20958e4f6c729aa33">qx::dao::strategy::concrete_table_inheritance</a>)
<a name="l00149"></a>00149       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#a8b897ee35ed11dc58762e36b2fcbaf7c">exist</a>(sKey) || <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#aa2534bf4fc6098361e1f117e761f2d24">exist_WithDaoStrategy</a>(sKey)); }
<a name="l00150"></a>00150       <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00151"></a>00151    }
<a name="l00152"></a>00152 
<a name="l00153"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a9d76e83f04a5c4d1a9aeca31c36e3b2e">00153</a>    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d76e83f04a5c4d1a9aeca31c36e3b2e">get_WithDaoStrategy_Helper</a>(<span class="keywordtype">long</span> lIndex)<span class="keyword"> const</span>
<a name="l00154"></a>00154 <span class="keyword">   </span>{
<a name="l00155"></a>00155       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcaf08e38a3769dbac50d011e9cef7944cd">qx::dao::strategy::single_table_inheritance</a>)
<a name="l00156"></a>00156       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() != <a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>()) ? <span class="keyword">get</span>(lIndex) : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">get_WithDaoStrategy</a>(lIndex)); }
<a name="l00157"></a>00157       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcad3582006a4f6e92c867911bbc38c7d74">qx::dao::strategy::class_table_inheritance</a>)
<a name="l00158"></a>00158       { <span class="keywordflow">return</span> ((! <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> &amp;&amp; (lIndex == <a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>())) ? <a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>() : <span class="keyword">get</span>(lIndex)); }
<a name="l00159"></a>00159       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fca6c908bb49b4e8da20958e4f6c729aa33">qx::dao::strategy::concrete_table_inheritance</a>)
<a name="l00160"></a>00160       { <span class="keywordflow">return</span> (((lIndex &gt;= 0) &amp;&amp; (lIndex &lt; <a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>())) ? <span class="keyword">get</span>(lIndex) : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">get_WithDaoStrategy</a>(lIndex - <a class="code" href="classqx_1_1_ix_data_member_x.html#a6426edb6b8c72ad9b595e463e34d5203">count</a>())); }
<a name="l00161"></a>00161       <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> NULL;
<a name="l00162"></a>00162    }
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a67bab365f184cc6b7091d318ef752b23">00164</a>    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a9d76e83f04a5c4d1a9aeca31c36e3b2e">get_WithDaoStrategy_Helper</a>(<span class="keyword">const</span> QString &amp; sKey)<span class="keyword"> const</span>
<a name="l00165"></a>00165 <span class="keyword">   </span>{
<a name="l00166"></a>00166       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcaf08e38a3769dbac50d011e9cef7944cd">qx::dao::strategy::single_table_inheritance</a>)
<a name="l00167"></a>00167       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() != <a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>()) ? <span class="keyword">get</span>(sKey) : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">get_WithDaoStrategy</a>(sKey)); }
<a name="l00168"></a>00168       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcad3582006a4f6e92c867911bbc38c7d74">qx::dao::strategy::class_table_inheritance</a>)
<a name="l00169"></a>00169       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>() &amp;&amp; (<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()-&gt;getKey() == sKey)) ? <a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>() : <span class="keyword">get</span>(sKey)); }
<a name="l00170"></a>00170       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fca6c908bb49b4e8da20958e4f6c729aa33">qx::dao::strategy::concrete_table_inheritance</a>)
<a name="l00171"></a>00171       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#a8b897ee35ed11dc58762e36b2fcbaf7c">exist</a>(sKey) ? <span class="keyword">get</span>(sKey) : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#a991c5a9b32047a4062d032d0b91cae8d">get_WithDaoStrategy</a>(sKey)); }
<a name="l00172"></a>00172       <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> NULL;
<a name="l00173"></a>00173    }
<a name="l00174"></a>00174 
<a name="l00175"></a><a class="code" href="classqx_1_1_qx_data_member_x.html#a696df68ce12ea44f50d4c7d512cedc16">00175</a>    <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * <a class="code" href="classqx_1_1_qx_data_member_x.html#a696df68ce12ea44f50d4c7d512cedc16">getId_WithDaoStrategy_Helper</a>()<span class="keyword"> const</span>
<a name="l00176"></a>00176 <span class="keyword">   </span>{
<a name="l00177"></a>00177       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcaf08e38a3769dbac50d011e9cef7944cd">qx::dao::strategy::single_table_inheritance</a>)
<a name="l00178"></a>00178       { <span class="keywordflow">return</span> ((<a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() != <a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>()) ? <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()); }
<a name="l00179"></a>00179       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fcad3582006a4f6e92c867911bbc38c7d74">qx::dao::strategy::class_table_inheritance</a>)
<a name="l00180"></a>00180       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> ? <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()); }
<a name="l00181"></a>00181       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_data_member_x.html#acebe9360cd346d56637c99963927322d">getDaoStrategy</a>() == <a class="code" href="structqx_1_1dao_1_1strategy.html#ac09cbf3cb9689ce7b1ed567c12b314fca6c908bb49b4e8da20958e4f6c729aa33">qx::dao::strategy::concrete_table_inheritance</a>)
<a name="l00182"></a>00182       { <span class="keywordflow">return</span> (<a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> ? <a class="code" href="classqx_1_1_qx_data_member_x.html#a79c3dab3f413c955c6e16669637ca4b7" title="Data member id with primary key type.">m_pDataMemberId</a> : <a class="code" href="classqx_1_1_qx_data_member_x.html#ac7de018ad1e45530a03fce810fa385cc">getBaseClass_Helper</a>()-&gt;<a class="code" href="classqx_1_1_qx_data_member_x.html#ad1332ec52beab51d3d73150c3b0f78dd">getId_WithDaoStrategy</a>()); }
<a name="l00183"></a>00183       <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> NULL;
<a name="l00184"></a>00184    }
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 };
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 } <span class="comment">// namespace qx</span>
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="preprocessor">#include &quot;../../inl/QxDataMember/QxDataMemberX.inl&quot;</span>
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="preprocessor">#endif // _QX_DATA_MEMBER_X_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_data_member_x_8h.html">QxDataMemberX.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
